<?php

function __autoload($class_name) 
{
    require_once "$class_name.class.php";
}
$stack = new SplStack();

$stack[] = new Profil("1");
$stack[] = new Profil("2");
$stack[] = new Profil("3");

foreach ($stack as $profil)  {
 echo $profil."\n";
}
?>
